<html> <head> <title>Module: ..\controls\djfield</title> </head> <body bgcolor="#ffffff">
<p><i><a href="index.html">Table of Contents</a></i></p>
<table border="0" cellpadding="5" cellspacing="0" width="100%">
  <tr>
    <th rowspan="2" valign="top" align="left" width="10%" bgcolor="#88bbee"><font color="#000000">Module: ..\controls\djfield</font> </th>
    <th bgcolor="#88bbee" width="90%" align="right"><font color="#000000">djfield.py</font> </th>
  </tr>
  <tr>
  <td>
  
  <table border="0" cellpadding="5" cellspacing="0" width="100%">
<tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> methods&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">&nbsp;</font> </th>
    </tr>
    <tr>
      <td><a href="#__init__">__init__</a><br><a href="#clear">clear</a><br><a href="#deselect">deselect</a><br><a href="#edit_redo">edit_redo</a><br><a href="#edit_undo">edit_undo</a><br><a href="#get_selected_text">get_selected_text</a><br><a href="#get_selection">get_selection</a><br><a href="#highlight_chars">highlight_chars</a><br><a href="#highlight_clear">highlight_clear</a><br><a href="#highlight_line">highlight_line</a><br><a href="#insert_text">insert_text</a><br><a href="#scrollto_end">scrollto_end</a><br><a href="#scrollto_start">scrollto_start</a><br><a href="#select_all">select_all</a><br><a href="#select_all_binding">select_all_binding</a><br><a href="#set_alignment">set_alignment</a><br><a href="#_lookupCustomProperties">_lookupCustomProperties</a><br></td>
      </tr>
<tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="__init__"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">__init__&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>__init__( parent, strDefaultText='', scrollbar=False, **options)</pre>
	
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="clear"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">clear&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>clear()</pre>
			Delete all text.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="deselect"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">deselect&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>deselect()</pre>
			Deselect any selection in the field.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="edit_redo"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">edit_redo&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>edit_redo()</pre>
			 Redo action (if the undo property is enabled)
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="edit_undo"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">edit_undo&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>edit_undo()</pre>
			 Undo action (if the undo property is enabled)
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="get_selected_text"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">get_selected_text&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>get_selected_text()</pre>
			Return the text that is selected. "" (empty string) if there is no selection.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="get_selection"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">get_selection&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>get_selection()</pre>
			Return the indices of the selection. Use get_selected_text to retrieve the actual text. Position of cursor if there is no selection.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="highlight_chars"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">highlight_chars&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>highlight_chars( c1, c2, bAppend=False)</pre>
			Highlight certain characters of text.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="highlight_clear"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">highlight_clear&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>highlight_clear()</pre>
			Remove highlight from text.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="highlight_line"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">highlight_line&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>highlight_line( nLine, bAppend=False)</pre>
			Highlight one line of text.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="insert_text"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">insert_text&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>insert_text( strText, bEnd=False)</pre>
			By default, inserts text into the field at the current position, replacing any current selection. If bEnd is True, appends text to the end of the field.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="scrollto_end"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">scrollto_end&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>scrollto_end()</pre>
			Scroll to the bottom of field.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="scrollto_start"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">scrollto_start&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>scrollto_start()</pre>
			Scroll to the top of field.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="select_all"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">select_all&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>select_all()</pre>
			Select all text in the field.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="select_all_binding"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">select_all_binding&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>select_all_binding()</pre>
			Add Ctrl+A -> select all binding
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="set_alignment"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">set_alignment&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>set_alignment( line, strJustification, bAppend=True)</pre>
			Set alignment of certain lines of text. Justification is 'left','right','center'. line is either 'all' or a line number. Note that, currently, everything changes when you change alignment of one line.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="_lookupCustomProperties"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">_lookupCustomProperties&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>_lookupCustomProperties( bSet, strAttribute, value=None)</pre>
	
        </font></td></tr>
<tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> properties&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">&nbsp;</font> </th>
    </tr>
    <tr>
      <td><a href="#bgcolor">bgcolor</a><br><a href="#borderstyle">borderstyle</a><br><a href="#borderwidth">borderwidth</a><br><a href="#color">color</a><br><a href="#enabled">enabled</a><br><a href="#font">font</a><br><a href="#height">height</a><br><a href="#highlightcolor">highlightcolor</a><br><a href="#scrollbar">scrollbar</a><br><a href="#text">text</a><br><a href="#undo">undo</a><br><a href="#width">width</a><br><a href="#wrap">wrap</a><br></td>
      </tr>
<tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="bgcolor"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">bgcolor&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	Background color of the field. RGB triplet, such as (255,0,0) for pure red.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="borderstyle"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">borderstyle&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	Border style. One of 'sunken','raised','groove','ridge','flat'. Default is 'sunken'.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="borderwidth"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">borderwidth&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	An integer. Defaults to 2.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="color"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">color&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	Foreground color of the field. RGB triplet.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="enabled"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">enabled&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	True or False. If False, the field is disabled, and no text can be inserted (even by code)
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="font"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">font&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	Set font of field. Standard tkinter font format, such as ('Times New Roman', 12, 'normal')
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="height"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">height&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	Integer, where one unit is the height of a line of text. Default is 24.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="highlightcolor"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">highlightcolor&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	Color for custom hilight.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="scrollbar"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">scrollbar&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	True or false. Display a vertical scrollbar. Can only be set when the control is first created, in the constructor.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="text"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">text&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	String. Current contents of the field.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="undo"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">undo&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	Boolean. Enable or disable undo stack.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="width"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">width&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	Integer, where one unit is the width of a char. Default is 80.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="wrap"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">wrap&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	Determines wrapping mode of the field. set to 'none'/False, 'char'/True, or 'word'.
        </font></td></tr>
<tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> functions&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">&nbsp;</font> </th>
    </tr>
    <tr>
      <td><a href="#_boolToFieldState">_boolToFieldState</a><br><a href="#_fieldStateToBool">_fieldStateToBool</a><br><a href="#_stringToWrap">_stringToWrap</a><br><a href="#_wrapToString">_wrapToString</a><br></td>
      </tr>
<tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="_boolToFieldState"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">_boolToFieldState&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>_boolToFieldState(value)</pre>
	
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="_fieldStateToBool"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">_fieldStateToBool&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>_fieldStateToBool(value)</pre>
	
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="_stringToWrap"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">_stringToWrap&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>_stringToWrap(value)</pre>
	
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="_wrapToString"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">_wrapToString&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>_wrapToString(value)</pre>
	
        </font></td></tr></table>  </td>   </tr>
  
</table>
<hr>
<p><i><a href="index.html">Table of Contents</a></i></p>
<font size="-2"><i>This document was automatically generated on 2008-02-29 23:29:05.495000 by something that looks like HappyDoc but isn't really.</font>
</body> </html> 